package com.cyy.hardwarecoding.ui.adapter;

import android.hardware.Sensor;
import android.support.annotation.Nullable;


import java.util.List;

/**
 * Created by YYCHEN on 2018/1/16.
 */

public class SensorListAdapter extends RecyclerViewSimpleAdapter<Sensor>{

    public SensorListAdapter(@Nullable List<Sensor> dataList, OnItemClickListener<Sensor> listener) {
        super(dataList, listener);
    }

    @Override
    public void bindData(ViewHolder holder, Sensor data) {
        holder.tv_name.setText(data.getName());
    }
}
